import req1 from '@/lib/req1'
//获取日报列表
export function traListAPI(){
    return req1.get('/train/trainList')
}
//新增日报
export function addTraInsertAPI({theme ,trainDate  ,content ,people  }){
return req1.post('/train/trainAdd',{theme ,trainDate  ,content ,people})
}
//修改
export function traUpdateAPI({id,theme ,trainDate  ,content ,people}){
  return req1.put('/train/trainUpdate',{id,theme ,trainDate  ,content ,people})
}
//删除
export function traDeleteAPI(id){
    id = id.join()
    return req1.delete('/train/trainDelete',{id})
}
//搜索
export function traSeach({theme}){
    return req1.get('/train/trainLike',{theme})
}
